from sys import argv

script, filename = argv

print " Going to erase %r." % filename
print "If you don't want to continue, hit CTRL+C."
print "If you do want that, hit any keys + RETURN"

raw_input("ready?")

print "Opening file ....."
target = open(filename, 'w')

print "Truncating this file..."
target.truncate()

print "now I'm going to ask you for 3 lines."

line1 = raw_input("line 1:")
line2 = raw_input("line 2:")
line3 = raw_input("line 3:")

print "I'm going to write these to the file."

target.write(line1)
target.write("\n\n")
target.write(line2)
target.write("\n\n")
target.write(line3)
target.write("\n\n")

print "And Finally, we close it."

target.close()

target = open(filename)
target.read()
target.close()


